<?php use_helper('Form') ?>
<style>
  td.nul_pad{
     padding: 3px 0 0 3px;
  }
</style>

<div style="margin-top: 20px;">
<form method="post" name="sel">
  <?php echo select_tag('skola_id', options_for_select($skolas, $sf_request->getParameter('skola_id'))) ?>
  <?php echo select_tag('mesec', options_for_select($mesecs, ($sf_request->getParameter('mesec'))?$sf_request->getParameter('mesec'):date('n'))) ?>
  <?php echo select_tag('godina', options_for_select($godinas, ($sf_request->getParameter('godina'))?$sf_request->getParameter('godina'):date('Y'))) ?>
  <button type="submit" class="button">Pregled</button>
</form>

</div>

<table style="margin: 10px 0 0 10px;" class="form_holder">
<tr>
    <th>Datum</th>
    <th>Suma</th>
</tr>

<?php foreach($uplatas as $uplata){?>
   <tr>
      <td><a id="<?php echo $uplata['Dan'] ?>" href="javascript: void(0)" onclick="dropTable(this.id, 'dan_uplata')"><?php echo $uplata['Dan'] ?></a></td>
      <td><?php echo $uplata['Suma'] ?></td>
   </tr>
   <tr id="tr_<?php echo $uplata['Dan'] ?>" class="hide"><td id="dan_<?php echo $uplata['Dan'] ?>" colspan="2"></td></tr>
<?php }?>

</table>